package com.crm.mapper;

import com.crm.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author crm
 * @since 2020-06-05
 */
public interface UserMapper extends BaseMapper<User> {

    User findByName(String userName);

    Integer updatePassWord(String userName);

    List<User> getAllUser(User user);

    Integer lockUser(Integer uid, Integer isLockout);
    List<Integer> getRidByUid(User user);

    List<User> getRname(Integer rid);
    Integer setPwd(Integer uid, String newPassword);
    List<User> selectUserByRid(Integer rid);
}
